package com.ruoyi.gp.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;

import java.io.Serializable;
import java.util.List;

/**
 * 问题视图对象 question
 *
 * @author ruoyi
 * @date 2024-03-08
 */
@Data
@ExcelIgnoreUnannotated
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QuestionVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 问题id
     */
    @ExcelProperty(value = "问题id")
    private Long questionId;

    /**
     * 所属问卷
     */
    @ExcelProperty(value = "所属问卷")
    private Long surveyId;

    /**
     * 问题名称
     */
    @ExcelProperty(value = "问题名称")
    private String title;

    /**
     * 问题类型（0单选题，1多选题，2填空题）
     */
    @ExcelProperty(value = "问题类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=单选题，1多选题，2填空题")
    private String type;

    /**
     * 是否必填（0否，1是）
     */
    @ExcelProperty(value = "是否必填", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=否，1是")
    private Long required;

    /**
     * 排列方式
     */
    @ExcelProperty(value = "排列方式")
    private Long orderStyle;

    private List<OptionsVo> optionsVos;
}
